<template>
  <div>
    <p>是否全屏:{{ isFullscreen }}</p>
    <el-button type="success" round @click="enter">进入</el-button>
    <el-button type="success" round @click="exit">退出</el-button>
    <el-button type="success" round @click="toggle">切换</el-button>
  </div>
</template>

<script setup>
import { useFullscreen } from '@vueuse/core'
const { isFullscreen, enter, exit, toggle } = useFullscreen()
</script>
